<!DOCTYPE html>
<html>
<head>
  <title>Nymph - Error page</title>

  <meta charset="UTF-8">
  <style>
    .errorDiv {
      position: absolute;
      min-height: 350px;
      height: 80%;
      max-height: 80%;
      margin-top: 2%;
      margin-left: 7%;
      min-width: 350px;
      width: 40%;
      max-width: 40%;
      border: 1px solid rgba(221, 3, 0, 0.77);
      border-radius: 6px;
      font-size: medium;
      text-align: center;
      padding-left: 3%;
      padding-top: 1%;
      color: rgb(0, 0, 0);
      overflow-y: auto;
      background-color: rgb(255, 203, 195);
    }

    .errorDiv .errorTitle {
      color: rgba(255, 0, 0, 0.7);
      font-weight: bold;
      min-height: 3%;
      max-height: 10%;
      max-width: 88%;
      width: 88%;
      min-width: 88%;
      padding-left: 15px;
      text-align: left;
      border-bottom: 1px solid rgba(221, 3, 0, 0.77);
      line-height: 20px;
      padding-bottom: 2px;
      margin-bottom: 2px;
    }

    .errorDiv .errorText {
      padding-top: 5px;
      font-size: smaller;
      max-height: 21.5%;
      margin-left: 4%;
      margin-right: 4%;
      max-width: 80%;
      width: 80%;
      min-width: 80%;
      line-height: 15px;
      text-align: left;
      overflow-y: auto;
      padding-bottom: 25px;
      padding-left: 3px;
      margin-bottom: 5px;
    }

  </style>
</head>
<?php
/**
 * Created by PhpStorm.
 * User: Aliaksei Lazerka
 * Date: 10/10/14
 * Time: 8:10 PM
 */
?>
<body>
<div class="errorDiv">
  <?php
  foreach (getExceptions() as $value) {
    ?>
    <div class="errorTitle">
      <?= $value->getCaller() ?>
      <br>
    </div>
    <div class="errorText">
      <?= $value->getMessage() ?>
    </div>
  <?php
  }
  ?>


  <?php
  foreach (getErrors() as $key => $value) {
    ?>
    <div class="errorTitle">
      <?= $key ?>
      <br>
    </div>
    <div class="errorText">
      <?= $value ?>
    </div>
  <?php
  }
  ?>
</div>
</body>
</html>